Therefore , each type of report would require its own report - specific intermediate data structure for holding the results , a visitor for populating the intermediate data structure , and then post - processing code for turning the intermediate data structure into the final report 因此,每一種報告類型都需要有自己的、特定于報告的中間數(shù)據(jù)結(jié)構(gòu)來存放結(jié)果,還需要一個用來填充中間數(shù)據(jù)結(jié)構(gòu)的訪問者,以及用來將中間數(shù)據(jù)結(jié)構(gòu)轉(zhuǎn)換成最終報告的后處理( post - processing )代碼。